import java.io.Serializable;

public class Schedule implements Serializable {
    private String id;
    private String movieId;  // 关联电影ID
    private String cinemaHall; // 放映厅
    private String date;     // 日期，如"2023-10-01"
    private String time;     // 时间，如"19:00"
    private int remainingSeats; // 剩余座位数

    public Schedule() {}

    public Schedule(String id, String movieId, String cinemaHall, String date, String time, int remainingSeats) {
        this.id = id;
        this.movieId = movieId;
        this.cinemaHall = cinemaHall;
        this.date = date;
        this.time = time;
        this.remainingSeats = remainingSeats;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMovieId() {
        return movieId;
    }

    public void setMovieId(String movieId) {
        this.movieId = movieId;
    }

    public String getCinemaHall() {
        return cinemaHall;
    }

    public void setCinemaHall(String cinemaHall) {
        this.cinemaHall = cinemaHall;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getRemainingSeats() {
        return remainingSeats;
    }

    public void setRemainingSeats(int remainingSeats) {
        this.remainingSeats = remainingSeats;
    }
}
